export class UserInfo {
    private _userId: string = ''
    private _username: string = ''
    private _name?: string

    private _authorities: Array<string> = []

    set userId(userId: string) {
        this._userId = userId
    }
    get userId(): string {
        return this._userId
    }
    
    set username(username: string) {
        this._username = username
    }
    get username(): string {
        return this._username
    }

    set name(name: string) {
        this._name = name
    }
    get name(): string {
        return this._name ?? ''
    }

    set authorities(authorities: Array<string>) {
        this._authorities = authorities
    }
    get authorities(): Array<string> {
        return this._authorities
    }
}